﻿
namespace ZquenceStudio3Host.DspPlugins.Synthesizers.Nodesizer.Engine.Modules.Protected
{
    [ModuleDisplay("In")]
    internal class InModule : BaseModule
    {
        internal ModuleOutput Left;
        internal ModuleOutput Right;

        public InModule( ModuleManager manager)
            : base(manager)
        {
            AddOutput(Left = new ModuleOutput("Left", IOType.Audio, this));
            AddOutput(Right = new ModuleOutput("Right", IOType.Audio, this));
        }
        
        /// <summary>
        /// Get processed left output.
        /// </summary>
        public double[] ProcessedLeft
        {
            get
            {
                return Left.AudioBuffer.Buffer;
            }
        }

        /// <summary>
        /// Get processed right output.
        /// </summary>
        public double[] ProcessedRight
        {
            get
            {
                return Right.AudioBuffer.Buffer;
            }
        }

        public override void Process()
        {

        }
    }
}
